package com.yh.workbill.db;

import java.io.Serializable;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "t_company")
public class Company {
    @PrimaryKey(autoGenerate = true)
    public long id;
    @ColumnInfo(name = "companyname")
    public String company_name;
    @ColumnInfo(name = "companyaddress")
    public String company_address;//string    `json:"company_address"` //varchar(255) DEFAULT NULL COMMENT '公司地址',
    @ColumnInfo(name = "companyphone")
    public String company_phone;//string    `json:"company_phone"`   //varchar(15) DEFAULT NULL COMMENT '公司电话',

    public Company(String company_name, String company_address, String company_phone) {
        this.company_name = company_name;
        this.company_address = company_address;
        this.company_phone = company_phone;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public String getCompany_address() {
        return company_address;
    }

    public void setCompany_address(String company_address) {
        this.company_address = company_address;
    }

    public String getCompany_phone() {
        return company_phone;
    }

    public void setCompany_phone(String company_phone) {
        this.company_phone = company_phone;
    }
}
